package com.example.wangzh.developkit.control;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.example.wangzh.developkit.R;
import com.example.wangzh.developkit.adapter.SelectTextAdapter;
import com.example.wangzh.developkit.base.BaseActivity;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;

/**
 * Created by wangzh on 2017/12/5.
 */

public class SelectListActivity extends BaseActivity {
    @BindView(R.id.recyclerView)
    RecyclerView recyclerView;

    @Override
    protected int getLayout() {
        return R.layout.activity_select_list;
    }

    @Override
    protected void initView() {
        List<String> stringList = new ArrayList<>();
        stringList.add("测试1");
        stringList.add("测试2");
        stringList.add("测试3");
        stringList.add("测试4");
        SelectTextAdapter selectTextAdapter = new SelectTextAdapter(this, stringList);
        recyclerView.setLayoutManager(new LinearLayoutManager(this));
        recyclerView.setAdapter(selectTextAdapter);
    }
}
